<%@ page import = "org.ntu.csn.as.model.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Authoring System Login</title>
<link href="css/main_login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/Jikey.js"></script>
<script type="text/javascript">
	window.onload = function(){
		J.onBlurText('uname');
		J.onBlurText('pwd');
	}
</script>
</head>
<body>
<%
SysMessage errorMsg = (SysMessage)request.getAttribute("errorMsg");
%>
<center><h1><img src="imgs/AuthoringSystem_Title.png" width="1000x" height="100px"></h1></center>
<div id="main">
  <div id="wrapper">
    <form action="LoginController" method="post" id="loginForm">
      <div id="sys_name">Authoring System</div>
      <ul id="cont">
       
        <li>
          <label class="lb" for="uname">Name</label>
          <input name="name" id="uname" type="text" class="ip" value="Please input user name" maxlength="18" />
        </li>
        <li>
          <label class="lb" for="pwd">Password</label>
          <input name="pwd" id="pwd" type="password" class="ip" value="haoqing" maxlength="10" />
        </li>
        <li><font color="red"><%=errorMsg==null?"":errorMsg.getMessage()%> </font></li>
        <li><span>
          <input  type="image" src="imgs/enter.png" title="Login" onclick="loginForm.submit()"/>
          </span></li>
      </ul>
      <p id="copy">Version 1.0 Copyright &copy; 2012 <a href="http://www.ntu.edu.sg" target="_blank" >NTU</a></p>
    </form>
  </div>
</div>
</body>
</html>
